<?php slot('js_insideLoadFunction')?>
ADMIN_FILTER.key_search = '<?php echo __('filter_key_search',null,'table_list')?>';
ADMIN_FILTER.enabled = '<?php echo (intval($data['filter']['filter_enabled'])>=0 && intval($data['filter']['filter_enabled'])<=1)?$data['filter']['filter_enabled']:'-1'?>';
ADMIN_FILTER.action = {
	error:{
		rowSelectedEmpty: '<?php echo __('error_row_selected', null, 'table_list')?>'
	},
	confirm:{
		deleteConfirm: '<?php echo __('row_delete_confirm', null, 'table_list')?>'
	}
}
ADMIN_FILTER.initFilter();
<?php end_slot()?>

<?php slot('header_css')?>
<style type="text/css">
<!-- 
div.box-content-main table.table-list td.name{
	width: 250px;
}
div.box-content-main table.table-list td.description{
	width: 200px;
}
div.box-content-main table.table-list td.tags{
	width: 200px;
}
-->
</style>
<?php end_slot()?>
<div class="box-navigation">
	<?php echo $data['navigation']?>
</div>
<div class="clr"></div>
<div class="box-filter">
	<form action="?" method="get" name="filter_form" id="filter_form">
		<select name="filter[filter_enabled]" id="filter_enable" class="combo-box">
			<option value="-1"><?php echo __('option_all', null, 'table_list')?></option>
			<option value="0"><?php echo __('is_enabled_0', null, 'table_list')?></option>
			<option value="1"><?php echo __('is_enabled_1', null, 'table_list')?></option>
		</select>
		<input type="text" maxlength="255" name="filter[filter_key]" id="filter_key" value="<?php echo empty($data['filter']['filter_key'])?__('filter_key_search',null,'table_list'):$data['filter']['filter_key']?>"/>
		<input type="submit" name="filter[filter_submit]" id="filter_submit" class="button" value="<?php echo __('filter_submit',null,'table_list')?>"/>
	</form>
</div>
<div class="clr"></div>
<div class="box-content">
	<form action="<?php echo $data['filter_action']?>" method="post" name="form_main" id="form_main">
		<input type="hidden" value="-1" name="action_token" id="action_token"/>
		<input type="hidden" value="none" name="action_name" id="action_name"/>
		<div class="control">
			<a href="#" class="a-control-get add" data-action="<?php echo ADMIN_DEFINED::ADD_RECORD?>" data-require="none"><?php echo __('control_add',null,'table_list')?></a>
			<a href="#" class="a-control delete" data-action="<?php echo ADMIN_DEFINED::DELETE_RECORD?>" data-require="selected" data-confirm="confirm"><?php echo __('control_delete',null,'table_list')?></a>
			<a href="#" class="a-control enable" data-action="<?php echo ADMIN_DEFINED::ENABLE?>" data-require="selected"><?php echo __('control_enabled',null,'table_list')?></a>
			<a href="#" class="a-control disable" data-action="<?php echo ADMIN_DEFINED::DISABLE?>" data-require="selected"><?php echo __('control_disabled',null,'table_list')?></a>
			<a href="#" class="a-control save-order" data-action="<?php echo ADMIN_DEFINED::SAVE_ORDER?>" data-require="none"><?php echo __('control_save_order',null,'table_list')?></a>
		</div>
		<div class="clr"></div>
		<div class="box-content-main">
			<table class="table-list" cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td class="head checkbox-select"><input type="checkbox" name="select_checkall" id="select_checkall" title="<?php echo __('to_checkall',null,'table_list')?>" class="chk-select"/></td>
					<td class="head name"><?php echo __('head_name',null,'faq_cates')?></td>
					<td class="head sort-order"><?php echo __('sort_order',null,'table_list')?></td>
					<td class="head tags"><?php echo __('head_tags',null,'faq_cates')?></td>
					<td class="head updated-by"><?php echo __('updated_by',null,'table_list')?></td>
					<td class="head updated-at"><?php echo __('updated_at',null,'table_list')?></td>
					<td class="head action"><?php echo __('action',null,'table_list')?></td>
				</tr>
				
				<?php echo html_entity_decode($data['list']['data'])?>
			</table>
		</div>
		<div class="clr"></div>
		<div class="control">
			<a href="#" class="a-control-get add" data-action="<?php echo ADMIN_DEFINED::ADD_RECORD?>" data-require="none"><?php echo __('control_add',null,'table_list')?></a>
			<a href="#" class="a-control delete" data-action="<?php echo ADMIN_DEFINED::DELETE_RECORD?>" data-require="selected"><?php echo __('control_delete',null,'table_list')?></a>
			<a href="#" class="a-control enable" data-action="<?php echo ADMIN_DEFINED::ENABLE?>" data-require="selected"><?php echo __('control_enabled',null,'table_list')?></a>
			<a href="#" class="a-control disable" data-action="<?php echo ADMIN_DEFINED::DISABLE?>" data-require="selected"><?php echo __('control_disabled',null,'table_list')?></a>
			<a href="#" class="a-control save-order" data-action="<?php echo ADMIN_DEFINED::SAVE_ORDER?>" data-require="none"><?php echo __('control_save_order',null,'table_list')?></a>
		</div>
		<?php if(count($data['pagination_pager'])>1):?>
		<div class="pagination">
			<span><?php echo __('pagination_text',null,'table_list')?></span>
			<span class="pagination"> 
			<?php foreach ($data['pagination_pager'] as $p):?>
				<a href="<?php echo empty($p['url'])?'#':($data['app_prefix'].$p['url'])?>" class="<?php echo $p['page_class']?>"><?php echo $p['page_num']?></a>
			<?php endforeach;?>
			</span>
			<div class="clr"></div>
		</div>
		<?php endif;?>
		<div class="clr"></div>
	</form>
</div>